package org.hagopa.games.moneypool.game.gameobjects;


public enum PropertyStatusEnum {
	FREE_TO_BUY(1),
	OWNED_BY_ONE(2),
	MORGAGED(3);
	

	private int idx;
	
	PropertyStatusEnum(int index)
	{
		this.idx = index;
	}
	public int idx()
	{
		return this.idx;
	}
	public static PropertyStatusEnum getEnum(int idx)
	{
		switch (idx){
			case 1:
				return FREE_TO_BUY;
			case 2:
				return OWNED_BY_ONE;
			case 3:
				return MORGAGED;
			
			default:
					return null;
			}
	}
}
